package com.quarkus.mybatis.mysql.service;

import com.quarkus.mybatis.mysql.mapper.UserMapper;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import java.util.List;

@ApplicationScoped
public class UserService {

    @Inject
    private UserMapper userMapper;

    public List getList(){
        return userMapper.findAll();
    }
}
